package com.blockchainenergy.blockChain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.Map;

@Data
public class Output {
    private int block_num;
    private int transaction_per_block;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss", timezone = "GMT+8")
    private Date start_time;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss", timezone = "GMT+8")
    private Date end_time;
    private String consume_time;
    private String consume_memory;
    private Map<String, Object> blockchain;

    public Output(int transaction_per_block, int numbers, Date starts, Date ends, String diffs, Map<String, Object> chain,String consume_memory) {
        this.transaction_per_block = transaction_per_block;
        this.block_num = numbers;
        this.start_time = starts;
        this.end_time = ends;
        this.consume_time = diffs;
        this.blockchain = chain;
        this.consume_memory = consume_memory;
    }
}
